package com.fire.web.modules.all.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.fire.web.modules.all.mapper.FireProprietorUserGroupMapper;
import com.fire.web.modules.all.entity.FireProprietorUserGroupModel;
import com.fire.web.modules.all.service.IFireProprietorUserGroupService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.plugins.Page;

import java.util.List;
import java.util.Map;

/**
 * 业主单位用户组Service
 *
 * @author Matthew
 * @Date 2019-02-23 16:25
 */
@Service
public class FireProprietorUserGroupServiceImpl extends ServiceImpl<FireProprietorUserGroupMapper, FireProprietorUserGroupModel> implements IFireProprietorUserGroupService{

    private static final Logger LOGGER = LoggerFactory.getLogger(FireProprietorUserGroupServiceImpl.class);

    @Autowired
    private FireProprietorUserGroupMapper fireProprietorUserGroupMapper;

    @Override
    public FireProprietorUserGroupModel selectOne(FireProprietorUserGroupModel entity){
        return fireProprietorUserGroupMapper.selectOne(entity);
    }

    @Override
    public List<FireProprietorUserGroupModel>selectList(FireProprietorUserGroupModel model){
        return fireProprietorUserGroupMapper.selectListByModel(model);
    }

    @Override
    public Page<FireProprietorUserGroupModel> selectPage(int currentPage, int pageSize, Wrapper<FireProprietorUserGroupModel> wrapper){
        return selectPage(new Page<FireProprietorUserGroupModel>(currentPage,pageSize), wrapper);
    }

    @Override
    public Page<Map<String, Object>> selectMapsPage(int currentPage, int pageSize, Wrapper<FireProprietorUserGroupModel> wrapper){
        return selectMapsPage(new Page<FireProprietorUserGroupModel>(currentPage,pageSize), wrapper);
    }

}
